<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="app"></div>
</body>
<script src="../js/react.development.js"></script>
<script src="../js/react-dom.development.js"></script>
<script src="../js/babel.min.js"></script>

<script type="text/babel">
    // 使用一个括号将虚拟DOM包起来表示一个整体，在这个括号内可以换行编写虚拟dom
    const DOM = (
        <h1>
            <span>Hello React</span>
        </h1>
    )
    console.log(DOM);
    ReactDOM.render(DOM,document.getElementById("app"))
</script>

</html>